package com.shenyi.shop.api;

import com.shenyi.shop.entity.OrderDO;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc 订单
 * @see
 * @since 1.0
 */
public interface IOrderService {

    OrderDO queryObject(Integer id);

    List<OrderDO> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    int save(OrderDO order);

    int update(OrderDO order);

    int delete(Integer id);

    int deleteBatch(Integer[] ids);

    /**
     * 确定收货
     *
     * @param id
     * @return
     */
    int confirm(Integer id);

    int sendGoods(OrderDO order);
}
